package com.hongxin.doc.api.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * https://blog.csdn.net/qq_55269149/article/details/137285469
 */
@Configuration
public class SwaggerConfig {
    @Bean
    public OpenAPI springShopOpenAPI() {
        return new OpenAPI()
                .info(new Info().title("文档协作系统 API 文档")
                        .contact(new Contact())
                        .description("文档协作系统接口API说明")
                        .version("v0.1.0"));
    }
}
